import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:getx_demo/pages/home_page.dart';
import 'package:getx_demo/pages/list_page.dart';

void main() {
  runApp(GetMaterialApp(
    title: "GetX Demo",
    home: const HomePage(),
    theme: ThemeData(
      primarySwatch: Colors.blue,
      useMaterial3: true,
    ),
    getPages: [
      GetPage(name: "/", page: () => const HomePage()),
      GetPage(name: "/list", page: () => const ListPage()),
    ],
  ));
}
